package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * UserInfo对象 user_info
 * 
 * @author ruoyi
 * @date 2025-04-17
 */
public class UserInfo
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户唯一标识 */
    @Excel(name = "用户唯一标识")
    private String userId;

    /** 微信用户唯一标识 */
    @Excel(name = "微信用户唯一标识")
    private String openId;

    /** 跨平台统一ID */
    @Excel(name = "跨平台统一ID")
    private String unionId;

    /** 微信会话密钥 */
    @Excel(name = "微信会话密钥")
    private String sessionKey;

    /** 绑定手机号 */
    @Excel(name = "绑定手机号")
    private String phoneNumber;

    /** 用户状态（0:正常，1:禁用，2:黑名单） */
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setUnionId(String unionId) 
    {
        this.unionId = unionId;
    }

    public String getUnionId() 
    {
        return unionId;
    }
    public void setSessionKey(String sessionKey) 
    {
        this.sessionKey = sessionKey;
    }

    public String getSessionKey() 
    {
        return sessionKey;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("openId", getOpenId())
            .append("unionId", getUnionId())
            .append("sessionKey", getSessionKey())
            .append("phoneNumber", getPhoneNumber())
            .append("status", getStatus())
            .toString();
    }
}
